/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 维保计划Entity
 * @author JiangYH
 * @version 2017-04-17
 */
public class WbMainPlan extends DataEntity<WbMainPlan> {
	
	private static final long serialVersionUID = 1L;
	private String sbzcdm;		// 设备注册代码
	private String contractNo;		// 合同编号
	private Date halfmonthMainDate;		// 半月维保时间
	private String halfmonthMainTime;		// 半月维保次数序列
	private String quarterMainTime;		// 季度维保次数序列
	private String quarterMainType;		// 是否季度维保
	private String halfyearMainTime;		// 半年维保次数序列
	private String halfyearMainType;		// 是否半年维保
	private String yearMainTime;		// 年度维保次数序列
	private String yearMainType;		// 是否年度维保
	private String remark;		// 备注

	private String deviceAddr; // 设备地址
	private String dwnbbh; // 单位内部编号


	public WbMainPlan() {
		super();
	}

	public WbMainPlan(String id){
		super(id);
	}

	@Length(min=1, max=100, message="设备注册代码长度必须介于 1 和 100 之间")
	public String getSbzcdm() {
		return sbzcdm;
	}

	public void setSbzcdm(String sbzcdm) {
		this.sbzcdm = sbzcdm;
	}
	
	@Length(min=0, max=100, message="合同编号长度必须介于 0 和 100 之间")
	public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getHalfmonthMainDate() {
		return halfmonthMainDate;
	}

	public void setHalfmonthMainDate(Date halfmonthMainDate) {
		this.halfmonthMainDate = halfmonthMainDate;
	}
	
	@Length(min=0, max=10, message="半月维保次数序列长度必须介于 0 和 10 之间")
	public String getHalfmonthMainTime() {
		return halfmonthMainTime;
	}

	public void setHalfmonthMainTime(String halfmonthMainTime) {
		this.halfmonthMainTime = halfmonthMainTime;
	}
	
	@Length(min=0, max=10, message="季度维保次数序列长度必须介于 0 和 10 之间")
	public String getQuarterMainTime() {
		return quarterMainTime;
	}

	public void setQuarterMainTime(String quarterMainTime) {
		this.quarterMainTime = quarterMainTime;
	}
	
	@Length(min=0, max=10, message="是否季度维保长度必须介于 0 和 10 之间")
	public String getQuarterMainType() {
		return quarterMainType;
	}

	public void setQuarterMainType(String quarterMainType) {
		this.quarterMainType = quarterMainType;
	}
	
	@Length(min=0, max=10, message="半年维保次数序列长度必须介于 0 和 10 之间")
	public String getHalfyearMainTime() {
		return halfyearMainTime;
	}

	public void setHalfyearMainTime(String halfyearMainTime) {
		this.halfyearMainTime = halfyearMainTime;
	}
	
	@Length(min=0, max=10, message="是否半年维保长度必须介于 0 和 10 之间")
	public String getHalfyearMainType() {
		return halfyearMainType;
	}

	public void setHalfyearMainType(String halfyearMainType) {
		this.halfyearMainType = halfyearMainType;
	}
	
	@Length(min=0, max=10, message="年度维保次数序列长度必须介于 0 和 10 之间")
	public String getYearMainTime() {
		return yearMainTime;
	}

	public void setYearMainTime(String yearMainTime) {
		this.yearMainTime = yearMainTime;
	}
	
	@Length(min=0, max=10, message="是否年度维保长度必须介于 0 和 10 之间")
	public String getYearMainType() {
		return yearMainType;
	}

	public void setYearMainType(String yearMainType) {
		this.yearMainType = yearMainType;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDeviceAddr() {
		return deviceAddr;
	}

	public void setDeviceAddr(String deviceAddr) {
		this.deviceAddr = deviceAddr;
	}

	public String getDwnbbh() {
		return dwnbbh;
	}

	public void setDwnbbh(String dwnbbh) {
		this.dwnbbh = dwnbbh;
	}
}